part of 'bloc.dart';

class SigningInPageBlocState {
  const SigningInPageBlocState({
    required this.signingInCredentialSubmissionStatus,
    required this.email,
    required this.password,
    required this.signingInFailure,
  });

  final SigningInCredentialSubmissionStatus signingInCredentialSubmissionStatus;
  final String email;
  final String password;
  final SigningInFailure? signingInFailure;

  SigningInPageBlocState copyWith({
    SigningInCredentialSubmissionStatus Function()? signingInCredentialSubmissionStatus,
    String Function()? email,
    String Function()? password,
    SigningInFailure? Function()? signingInFailure,
  }) {
    return SigningInPageBlocState(
      signingInCredentialSubmissionStatus: signingInCredentialSubmissionStatus == null
          ? this.signingInCredentialSubmissionStatus
          : signingInCredentialSubmissionStatus(),
      email: email == null ? this.email : email(),
      password: password == null ? this.password : password(),
      signingInFailure: signingInFailure == null ? this.signingInFailure : signingInFailure(),
    );
  }
}
